<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta charset="utf-8">
<head>
    <meta charset="utf-8">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
          crossorigin="anonymous">
    <script>src="https://cdn.bootcss.com/jquery/3.4.1/jquery.slim.min.js"</script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
            crossorigin="anonymous"></script>
</head>
<form class="form-horizontal" method="post" id="add-form" action="/add" method="post">
<body>
<!--
<script type="text/javascript">
    function checkForm(){
        var form = document.getElementById('add-form');
         form.submit();
         alert("提交完成关闭窗口");
         window.open("about:blank","_self").close()
}
</script>
-->
<div style="height: 20px;width: 30%">
<table border="1" class="table table-bordered" style="height: 400px;width: 350px">
    <tr style="width: 150px">
        <th style="width: 25%;background-color: darkmagenta">录入</th>
        <th style="width: 75%;background-color: red">信息</th>
<tr>
  <td>当前状态</td>
   <td>
<textarea class="form-control" rows="1" name="lanip"></textarea>
   </td>
 </tr>

  <tr>
   <td>设备位置</td>
   <td>
<textarea class="form-control" rows="1" name="lanip"></textarea>
   </td>
  </tr>

       <tr>
   <td>设备类型</td>
   <td>
<textarea class="form-control" rows="1" name="lanip"></textarea>
   </td>
  </tr>
         <tr>
   <td>所属环境</td>
   <td>
<textarea class="form-control" rows="1" name="lanip"></textarea>
   </td>
  </tr>

     <tr>
   <td>操作系统</td>
   <td>
<textarea class="form-control" rows="1" name="lanip"></textarea>
   </td>
  </tr>
 <tr>
   <td>IP地扯</td>
   <td>
<textarea class="form-control" rows="1" name="lanip"></textarea>
   </td>

<tr>
     <td><button style="display:block;margin:0 auto" class="btn btn-default" type="submit" onclick="checkForm();">保 存</button>
    <td><button style="display:block;margin:0 auto" class="btn btn-default"  type="submit" onclick=window.close();>关闭</button></td>
    </tr>
  </table>
</form>
</table>
</div>
</body>
</html>